var {describe,it,before,after,beforeEach,afterEach} = require('mocha');
let axios = require('axios');
var {expect} = require("chai");

module.exports = function ({token,url}) {
    describe("users接口测试",function(){
        it("获得用户信息",async function () {
            let res = await axios.get(url + "/users/getUseInfo",{headers:{"access-token":token}});
            expect(res.status).to.equal(200);
            expect(res.data.status).to.equal(200);
            expect(res.data.msg).to.equal("获得用户信息");
        })
    })
}
